# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=ccrtp
pkgver=2.1.2
pkgrel=0
pkgdesc="An implementation of RTP, the real-time transport protocol from the IETF"
url="https://www.gnu.org/software/ccrtp/"
arch="all"
license="GPL-2.0-or-later"
makedepends="cmake samurai libgcrypt-dev commoncpp-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://ftp.gnu.org/gnu/ccrtp/ccrtp-$pkgver.tar.gz"
options="!check" # no tests provided

build() {
	cmake -G Ninja -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DLIB_VERSION=3.1.0 \
		-DSOVERSION=3 # ???
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
a835f57a0eef7cba11c55c93ce2f11ebd8ab4099e7c723043c51e4872f3da87af946fc50fac18b47ea5d72b2a1227b377810e9134c1f3a8982d4ce5944d043e9  ccrtp-2.1.2.tar.gz
"
